from django.urls import path, include
from app01 import views
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register('Enterprise', viewset=views.EnterpriseViewSet)
router.register('Linkman', viewset=views.LinkmanViewSet)
router.register('Office', viewset=views.OfficeViewSet)
router.register('Participate', viewset=views.ParticipateViewSet)
router.register('Researcher', viewset=views.ResearcherViewSet)
router.register('Researchproject', viewset=views.ResearchprojectViewSet)
router.register('Researchroomlist', viewset=views.ResearchroomlistViewSet)
router.register('Scientificpayoffs', viewset=views.ScientificpayoffsViewSet)
router.register('Secretary', viewset=views.SecretaryViewSet)
router.register('Subproject', viewset=views.SubprojectViewSet)
# router.register('login', viewset=views.UserViewSet)

urlpatterns = [
    path('test/', views.test),
    path('login/', views.login),
]
urlpatterns += router.urls
